﻿@model HanGu.Entity.EveryDayWisdom
@{
    Layout = null;
    //TempData["TitlePic"] = Model.TitlePic.Replace("_B.", "_S.");
    //TempData["ContorlID"] = "Remark";
    //TempData["Remark"] = Model.Remark;
    TempData["GropName"] = Model.GUID;
}
<div class="pageContent">
    <form method="post" action="admin/@ViewData["CurrentController"]/create" class="pageForm required-validate"
    onsubmit="return validateCallback(this, navTabAjaxDone);">
    @Html.ValidationSummary(true)
    <div class="pageFormContent" layouth="56">
        @Html.HiddenFor(model => model.ID)
        @Html.HiddenFor(model => model.GUID)
        <p style="width:100%;height:220px">
            <label>
                内容：</label>
            @Html.TextAreaFor(model => model.Remark, new { @class = "required", @style = "width:90%; height:200px" })
            @Html.ValidationMessageFor(model => model.Remark)
        </p>
        <p>
            <label>
                是否置顶:</label>
            <input type="checkbox" id="IsIndex" name="IsIndex"  checked="@Model.IsIndex"/>
            @Html.ValidationMessageFor(model => model.IsIndex)
        </p>
        <p>
            <label>
                作者：</label>
            @Html.TextBoxFor(model => model.Author)
            @Html.ValidationMessageFor(model => model.Author)
        </p>
        <p>
            <label>
                创建时间：</label>
            @Html.TextBoxFor(model => model.CreateTime, new { @Readonly = "true" })
            @Html.ValidationMessageFor(model => model.CreateTime)
        </p>
        <p>
            <label>
                创建者：</label>
            @Html.TextBoxFor(model => model.Creator, new { @Readonly = "true" })
            @Html.ValidationMessageFor(model => model.Creator)
        </p>
        <p>
            <label>
                修改时间：</label>
            @Html.TextBoxFor(model => model.UpdateTime, new { @Readonly = "Readonly" })
            @Html.ValidationMessageFor(model => model.UpdateTime)
        </p>
        <p>
            <label>
                修改者：</label>
            @Html.TextBoxFor(model => model.Updater, new { @Readonly = "Readonly" })
            @Html.ValidationMessageFor(model => model.Updater)
        </p>
    </div>
    <div class="formBar">
        <ul>
            <li>
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="submit">
                            提交</button></div>
                </div>
            </li>
            <li>
                <div class="button">
                    <div class="buttonContent">
                        <button type="button" class="close">
                            取消</button></div>
                </div>
            </li>
        </ul>
    </div>
    </form>
</div>
